<?php

/**
 * @author dao thanh son
 * @copyright 2010
 */
include_once("solrAPI/Service.php");
include_once("solrAPI/Document.php");
include_once("solrAPI/Response.php");



$solr = new Apache_Solr_Service("localhost",'8983',"solr/soProducts/"); //or explicitly new Apache_Solr_Service('localhost', 8180, '/solr')

if ($solr->ping())
{
	$solr->deleteByQuery("*:*");
	$solr->commit();
}
else
echo "erro to connect solr server";
?>